package netty.util;

public class HexUtil {

    public static StringBuilder HexToString(Byte[] bytes){
        StringBuilder str = new StringBuilder();

        for (byte b : bytes) {
            str.append(String.format("%02X ", b));
        }

        return str;
    }

    public static StringBuilder HexToString(byte[] bytes){
        StringBuilder str = new StringBuilder();

        for (byte b : bytes) {
            str.append(String.format("%02X ", b));
        }

        return str;
    }
}
